<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Jdong 图片修改</title>
    <script type="text/javascript" th:src="@{/menu/js/jquery.js}"></script>
    <script type="text/javascript" th:src="@{/menu/js/jquery.form.min.js}"></script>
    <script type="text/javascript" th:src="@{/menu/js/custom.js}"></script>
</head>
<body>
    <form th:method="post" th:action="@{/upload}" th:object="${file}" enctype="multipart/form-data">
        <table>
            <tr>
                <td>
                    <span th:text="*{name}"></span>
                </td>
                <td>
                <input type="hidden" th:field="*{id}" th:value="*{id}"/>
                <input type="file" name="logofile" accept="image/png,image/gif,image/jpeg"/>
                </td>
                <td>
                    <input type="submit" value="修改">
                </td>
            </tr>
            <tr><td colspan="3"><div id="show"></div></td></tr>
        </table>
    </form>
</body>
</html>